<script setup lang="ts">
defineOptions({
  name: 'LoginRegisterOuter',
})

const emit = defineEmits(['on-enter'])

const handleEnter = () => {
  emit('on-enter')
}
</script>

<template>
  <div class="login-and-register-container c-center">
    <div class="animation-chuck animation-chuck-one"></div>
    <div class="animation-chuck animation-chuck-two"></div>

    <div class="outer-container c-center" @keyup.enter="handleEnter">
      <div class="inner-container">
        <h3 class="title">
          <span>幸福小家系统</span>
        </h3>
        <div class="content">
          <slot></slot>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
@use './index.scss';
</style>
<style lang="scss">
.login-and-register-container {
  .submit-button {
    outline: none;
    border-color: var(--default);
    background-color: var(--default);

    &:hover {
      background-color: var(--primary);
      border-color: var(--primary);
    }
  }

  .to-button {
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    color: var(--textGrayColor);

    > span {
      transition: color 0.3s;
      cursor: pointer;

      &:hover {
        color: var(--textColor);
      }
    }
  }
}
</style>
